﻿using System;
using System.Collections.Generic;

namespace Cotrobaie
{
    public class Mesaje
    {
        public bool Success { get; set; }
        public string Mesaj { get; set; }
    }
    public class TipComment
    {
        public int ID { get; set; }
        public string titlu { get; set; }
        public string comment { get; set; }
        public DateTime data { get; set; }
        public int user_id { get; set; }
        public string user_name { get; set; }
        public long product_id { get; set; }
        public string product_name { get; set; }
    }
    public class MesajeComments
    {
        public List<TipComment> Commenturi { get; set; }
        public bool Success { get; set; }
        public string Mesaj { get; set; }
    }
    public class MesajeRatings
    {
        public double rating { get; set; }
        public bool Success { get; set; }
        public string Mesaj { get; set; }
    }
    public class TipProdus
    {
        public long ID { get; set; }
        public string name { get; set; }
        public string brand { get; set; }
        public string description { get; set; }
        public string linkSite { get; set; }
        public string imageSwatch { get; set; }
        public string imageSmall { get; set; }
        public string imageMedium { get; set; }
        public string imageLarge { get; set; }
        public string UPC { get; set; }
        public string ISBN { get; set; }
        public int categ_id { get; set; }
        public string categ_name { get; set; }
        public string authors { get; set; }
        public string linkAmazon { get; set; }
        public string linkEbay { get; set; }
        public double Rating { get; set; }
        public double? Price { get; set; }
        public string KeyWords { get; set; }
        public short? NrAccesari { get; set; }
    }
    public class MesajeProduse
    {
        public List<TipProdus> Produse { get; set; }
        public bool Success { get; set; }
        public string Mesaj { get; set; }
    }

    public class TipUser
    {
        public int ID { get; set; }
        public string Username { get; set; }
        public string Parola { get; set; }
        public string Nume { get; set; }
        public string Prenume { get; set; }
        public string Email { get; set; }
    }
    public class MesajeUser
    {
        public TipUser User { get; set; }
        public bool Success { get; set; }
        public string Mesaj { get; set; }
    }

    public class TipPreturi
    {
        public double? Pret { get; set; }
        public int SiteID { get; set; }
        public string SiteName { get; set; }
        public DateTime Data { get; set; }
    }
    public class MesajePreturi
    {
        public List<TipPreturi> Produse { get; set; }
        public bool Success { get; set; }
        public string Mesaj { get; set; }
    }
    public class TipCategorii
    {
        public int ID { get; set; }
        public string name { get; set; }
        public string description { get; set; }
        public List<TipCategorii> SubCategorii { get; set; }
    }
    public class MesajeCategorii
    {
        public List<TipCategorii> Categorii { get; set; }
        public bool Success { get; set; }
        public string Mesaj { get; set; }
    }
    public class TipAlarma
    {
        public long ID { get; set; }
        public double? AlertPrice { get; set; }
        public double? AlertProcent { get; set; }
        public double PretVechi { get; set; }
        public long product_id { get; set; }
        public int user_id { get; set; }
    }
    public class MesajeAlarme
    {
        public List<TipAlarma> Alarme { get; set; }
        public bool Success { get; set; }
        public string Mesaj { get; set; }
    }

    public enum Ordonare { Crescator, Descreascator, Deloc };
}